<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>trcTelGetAdd</title>
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
</head>
<body>
<div id="qxWin" class="easyui-window" title="浏览窗口-历史来电"
     data-options="modal:false,closed:true,minimizable:false,maximizable:false,iconCls:'icon-Xeye'"
     style="width:1500;height:750;padding:4px;">
    <!--    <iframe id="ifmShow" name="showFrame" scrolling="auto" frameborder="0" style="width:1500px;height:350px;"></iframe>-->
    <!--    <iframe id="ifmShow1" name="showFrame" scrolling="auto" frameborder="0" style="width:1500px;height:400px;"></iframe>-->
    <!-- 265 -->
</div>
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form id="fmTelGet" class="form-horizontal m" method="post">
        <input id="pkId" name="pkId" type="hidden" value="0"/>
        <input id="flagInt" name="flagInt" type="hidden" value="0"/>
        <input id="flagString" name="flagString" type="hidden" value=""/>
        <input id="spareInt" name="spareInt" type="hidden" value="0"/>
        <input id="manyidu" name="spareString" type="hidden" value=""/>

        <input id="txtAutoOpen" name="autoGetFlag" type="hidden" value="-1"/>

        <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
            <TR>
                <TD width="34%" valign=top>
                    <fieldset class="flset">
                        <legend><span style="font-size:14px; font-weight:bold; color:#0066ff;">来电人信息</span></legend>
                        <DIV style="height:260px;">
                            <table id="tabForm1" borderColor="#eeeeee" cellSpacing="0" borderColorDark="#ffffff"
                                   cellPadding="0" width="100%" borderColorLight="#eeeeee" border="0">
                                <tr>
                                    <td class="tdR"><span class="spRed">地区：</span></td>
                                    <td class="tdL"><select id="ddlArea" name="fmAreaNo" class="drpCss"
                                                            onchange="DropChgSendTextOnly(this,'txtFmAreaName');">
                                        <option value="-1">-请选择-</option>
                                        <option value="5101">成都市</option>
                                        <option value="510104">锦江区</option>
                                        <option value="510105">青羊区</option>
                                        <option value="510106">金牛区</option>
                                        <option value="510107">武侯区</option>
                                        <option value="510108">成华区</option>
                                        <option value="510109">高新区</option>
                                        <option value="510191">天府新区</option>
                                        <option value="510192">简阳市</option>
                                        <option value="510112">龙泉驿区</option>
                                        <option value="510113">青白江区</option>
                                        <option value="510114">新都区</option>
                                        <option value="510115">温江区</option>
                                        <option value="510181">都江堰市</option>
                                        <option value="510182">彭州市</option>
                                        <option value="510183">邛崃市</option>
                                        <option value="510184">崇州市</option>
                                        <option value="510121">金堂县</option>
                                        <option value="510122">双流区</option>
                                        <option value="510124">郫都区</option>
                                        <option value="510129">大邑县</option>
                                        <option value="510131">蒲江县</option>
                                        <option value="510132">新津县</option>
                                        <option value="909909">其它</option>
                                    </select><input id="txtFmAreaName" name="fmAreaName" type="hidden" value=""/>
                                        <span id="txtFmAreaNameTip"></span></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span>地址：</span></td>
                                    <td class="tdL"><input id="txtFmAddress" name="fmAddress" class="tbCss"
                                                           type="text" value="" size="30" maxlength="100"/></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span>性别：</span></td>
                                    <td class="tdL"><input id="rbMan" name="fromSex" onclick="aideSex('先生');"
                                                           type="radio" value="1" checked="checked"/><label
                                            for="rbMan">男</label>
                                        &nbsp;&nbsp;<input id="rbWoman" name="fromSex" onclick="aideSex('女士');"
                                                           type="radio" value="0"/><label for="rbWoman">女</label></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spRed">来电人：</span></td>
                                    <td class="tdL"><input id="txtFromName" name="fromName" class="tbCss"
                                                           onclick="aideFrName(-1);" onblur="aideFrName(1);" type="text"
                                                           value="" maxlength="25"/></td>
                                </tr>
                                <tr>
                                    <td class="tdR" valign="top"><span
                                            class="spRed">&nbsp;来电号码&nbsp;<br>(联系电话)</span><span
                                            id="txtFromTelATip"></span></td>
                                    <td class="tdL">
                                        <div><input id="txtFromTelA" name="fromTelA" class="tbCss" type="text"
                                                    value="" maxlength="20"/>
                                            <br><input id="txtFromTelB" name="fromTelB" class="tbCss" type="text"
                                                       value="" maxlength="20"/>
                                            <input id="fromTelC" name="fromTelC" type="hidden" value=""/>
                                        </div>
                                        <!--  <div style="margin-top:4px; margin-bottom:4px;"><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onClick="qxWinHistory();">历史来电</a></div>-->
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span>电子邮件：</span></td>
                                    <td class="tdL"><input id="txtFmEmail" name="fmEmail" class="tbCss"
                                                           type="text"
                                                           value="" maxlength="50"/></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span>证件：</span></td>
                                    <td class="tdL"><select id="ddlCerType" name="fmCerName" class="drpCss">
                                        <option value="-1">-请选择-</option>
                                        <option value="10">身份证</option>
                                        <option value="20">护照</option>
                                        <option value="30">驾照</option>
                                        <option value="40">军官证</option>
                                        <option value="50">警官证</option>
                                        <option value="99">其它</option>
                                    </select><input id="txtFmCerNo" name="fmCerNo" class="tbCss" type="text"
                                                    value=""
                                                    maxlength="25"/></td>
                                </tr>
                            </table>
                        </DIV>
                    </fieldset>
                </TD>
                <TD style="padding-left:6px;" valign=top>
                    <fieldset class="flset">
                        <legend><span style="font-size:14px; font-weight:bold; color:#0066ff;">通话详情</span></legend>
                        <DIV style="height:260px;">
                            <input id="liftInt" name="liftInt" type="hidden" value="0"/>
                            <input id="liftStr" name="liftStr" type="hidden" value=""/>
                            <input id="fmSpareA" name="fmSpareA" type="hidden" value=""/>
                            <input id="fmSpareB" name="fmSpareB" type="hidden" value=""/>
                            <INPUT TYPE="hidden" id="hdnTno" value=""/>
                            <INPUT TYPE="hidden" id="hdnWno" value=""/>
                            <INPUT TYPE="hidden" id="hdnUerNo" value="1619"/>
                            <INPUT TYPE="hidden" id="hdnTName" value="1619"/>
                            <table id="tabForm2" borderColor="#eeeeee" cellSpacing="0" borderColorDark="#ffffff"
                                   cellPadding="0" width="100%" borderColorLight="#eeeeee" border="0">
                                <tr>
                                    <td class="tdR"><span>呼叫ID：</span></td>
                                    <td class="tdL"><input id="txtCallID" name="callId" class="tbRO" type="text"
                                                           value="-1" maxlength="50"/></td>
                                    <td class="tdR"><span>录音ID：</span></td>
                                    <td class="tdL"><input id="txtTapeID" name="tapeId" class="tbRO" type="text"
                                                           value="-1" maxlength="50"/></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span>接听人：</span></td>
                                    <td class="tdL"><input id="txtLiftWorkNo" name="liftWorkNo" type="hidden"
                                                           value="1619"/><input id="txtLiftWorker"
                                                                                name="liftWorker"
                                                                                class="tbRO" type="text" value="1619"
                                                                                maxlength="25"/></td>
                                    <td class="tdR"><span>分机号：</span></td>
                                    <td class="tdL"><input id="txtLiftTelNo" name="liftTelNo" class="tbRO"
                                                           type="text" value="" maxlength="20"/></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spRed">同意公开：</span></td>
                                    <td class="tdL"><input id="openFrom1" name="openFrom" type="radio"
                                                           value="1"/><label for="openFrom1">是</label>
                                        &nbsp;&nbsp;<input id="openFrom2" name="openFrom" type="radio"
                                                           value="0" checked="checked"/><label
                                                for="openFrom2">否</label>&nbsp;<span class="f12">（来电人同意否？）</span>
                                    </td>
                                    <td class="tdR"><span>知识库：</span></td>
                                    <td class="tdL"><a href="#" class="easyui-linkbutton"
                                                       data-options="iconCls:'icon-search'" title="提示：选择“内容类别”后可缩小查询范围"
                                                       onClick="loreLibOpen();">查询-解答</a></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spRed">来电内容：</span></td>
                                    <td class="tdL" colspan="3">
                                        <div><textarea id="txtFmContent" name="fmContent" class="taCss"
                                                       onkeyup="IptWordClew(this,'tpInput',3500)"
                                                       onkeydown="IptWordClew(this,'tpInput',3500)" rows="5"
                                                       cols="62"></textarea></div>
                                        <span id="txtFmContentTip"></span>
                                        <div id="tpInput" style="font-size:12px;color:#666666;"><span>最多字数：</span><span
                                                class="spOrange">3500</span><span> 已输入：</span><span
                                                class="spLRed">0</span><span> 剩余：</span><span
                                                class="spLBlue">3500</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spLBlue" title="系统自动生成">流水号：</span></td>
                                    <td class="tdL"><input type="text" id="tmWsCode" class="tbRO" value=""
                                                           title="供来电人网站查询用"><span class="f12">（自动）</span><input
                                            id="txtWsCode" name="wsCode" type="hidden" value=""/></td>
                                    <td class="tdR"><span class="spLBlue" title="系统自动生成">查询码：</span></td>
                                    <td class="tdL"><input type="text" id="tmWsKey" class="tbRO" value=""
                                                           title="供来电人网站查询用"><span
                                            class="f12">（自动）</span><input id="txtWsKey" name="wsKey"
                                                                          type="hidden"
                                                                          value=""/></td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span>接通时间：</span></td>
                                    <td class="tdL"><input type="text" id="tmFrom" class="tbRO" value="" maxlength="19">
                                        <input id="txtFromTime" name="fromTime" type="hidden"
                                               value="2022-03-08 15:15:04"/></td>
                                    <td class="tdR"><span class="spOrange">挂断时间：</span></td>
                                    <td class="tdL"><input type="text" id="tmEnd" class="tbRO" maxlength="19"
                                                           onClick="endTmSet();">
                                        <input id="txtLiftEnd" name="liftEnd" type="hidden" value=""/><input
                                                id="txtLiftLength" name="liftLength" type="hidden" value="0"/>
                                    </td>
                                </tr>
                            </table>
                        </DIV>
                    </fieldset>
                </TD>
            </TR>
        </TABLE>
        <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
            <TR>
                <TD style="padding-top:4px;padding-bottom:2px;">
                    <fieldset class="flset">
                        <legend><span style="font-size:14px; font-weight:bold; color:#0066ff;">坐席处理情况</span></legend>
                        <DIV>
                            <table id="tabForm3" borderColor="#eeeeee" cellSpacing="0" borderColorDark="#ffffff"
                                   cellPadding="0" width="100%" borderColorLight="#eeeeee" border="0">
                                <tr>
                                    <td class="tdR"><span class="spRed">来电类别：</span></td>
                                    <td class="tdL"><select id="ddlTelSort" name="dfmClaNo" class="drpCss"
                                                            onchange="DropChgSendTextOnly(this,'txtTelClaName');">
                                        <option value="-1">-请选择-</option>
                                        <option value="10">咨询</option>
                                        <option value="20">求助</option>
                                        <option value="30">意见建议</option>
                                        <option value="40">投诉举报</option>
                                        <option value="50">表扬</option>
                                        <option value="60">征集建言</option>
                                        <option value="99">无效来电</option>
                                    </select><input id="txtTelClaName" name="dfmClaName" type="hidden" value=""/>
                                    </td>
                                    <td class="tdR"><span class="spRed">内容类别：</span></td>
                                    <td class="tdL"><input id="qxCT" class="easyui-combotree" style="width:300px;">
                                        <input id="txtDcntAcode" name="dcntAcode" type="hidden" value=""/><input
                                                id="txtDCntAName" name="dcntAname" type="hidden" value=""/></td>
                                </tr>
                                <tr>
                                    <!-- 添加的工单模块选择功能 -->
                                    <!-- <td class="tdR"><span class="spRed">模板名称：</span></td>
                                    <td class="tdL"><input id="sortModelNum" class="easyui-combobox" name="sortModelNum" value="请选择模板"/></td> -->
                                    <!-- 添加的工单模块选择功能 -->

                                    <!-- 工单模板增删改功能 -->
                                    <!-- 			<td class="tdR"><span class="spRed">模板操作：</span></td>
                                                <div id="sortModelUpdate" sty></div> -->
                                    <!-- 工单模板增删改功能 -->
                                    <td class="tdR"><span class="spRed">解答满意度：</span></td>
                                    <td class="tdL">
                                        <select id="manyiSelect" Class="drpCss" style="width:100px">
                                            <option value="未评价">未评价</option>
                                            <option value="满意">满意</option>
                                            <option value="不满意">不满意</option>
                                            <option value="未明确">未明确</option>
                                        </select>
                                    </td>

                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spOrange">重复来电：</span></td>
                                    <td class="tdL"><input id="repeatFlag1" name="repeatFlag" type="radio"
                                                           value="1"/><label for="repeatFlag1">是</label>
                                        &nbsp;&nbsp;<input id="rbOpenXn" name="repeatFlag" type="radio" value="0"
                                                           checked="checked"/><label for="rbOpenXn">否</label>&nbsp;<span
                                                class="f12">（来电内容是否重复）</span> <a href="#" class="easyui-linkbutton"
                                                                                 data-options="iconCls:'icon-search'"
                                                                                 onClick="qxWinHistory();">历史记录</a>
                                    </td>
                                    <td class="tdR"><span class="spRed">建议公开：</span></td>
                                    <td class="tdL"><input id="openX1" name="openX" type="radio"
                                                           value="1"/><label for="openX1">是</label>
                                        &nbsp;&nbsp;<input id="openX2" name="openX" type="radio" value="0"
                                                           checked="checked"/><label
                                                for="openX2">否</label>&nbsp;<span class="f12">（公开办理过程）</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spRed">坐席处理：</span></td>
                                    <td class="tdL">
                                        <div><select id="ddlWord" class="drpCss" style="width:380px;"
                                                     onchange="DropChgEffectiveText(this,'txtXdealDesc');">
                                            <option value="-1">---处理来电常用语---</option>
                                            <option value="-110">请 XXX 调查处理后直接与来话人联系，并将处理结果抄复我办。</option>
                                            <option value="-120">已当场处理</option>
                                            <option value="-130">来话人反映外地（xx市）问题，建议其向当地职能部门反映</option>
                                            <option value="-140">请来话人了解清楚后再做反映</option>
                                            <option value="-150">已建议来话人以适当形式向市纪委监察局（12388）反映</option>
                                            <option value="-160">查询知识库或相关资料，告知来话人：</option>
                                            <option value="-170">建议来话人：</option>
                                            <option value="-180">经查，反映问题与（工单编号：）相同，告知来话人已有市民反映，且职能部门正在办理</option>
                                            <option value="-190">
                                                经查，工单编号为（）的来电，相关部门正在积极的处理中，请耐心等待处理结果。12345热线公开电话的处理时限为：一般问题5个工作日内回复，较复杂问题15个工作日内给予回复，特别重大及疑难问题按照信访条列60天内回复。欢迎多提宝贵意见！
                                            </option>
                                            <option value="-200">记录并整理通话内容，告知来话人后续由相关职能部门进行办理</option>
                                            <option value="-210">感谢您对成都市政府工作的关心和支持。欢迎多提宝贵意见！</option>
                                            <option value="-220">已当即联系自来水公司（962965）、电业局（95598）、天然气公司（962777）的***号工作人员处理。
                                            </option>
                                            <option value="-230">您所反映的问题我办已多次受理，并且相关部门已进行多次回复和解释，对此我办不再受理该问题，请您通过其他途径解决
                                            </option>
                                            <option value="-240">据查，您反映情况不属实，并且相关部门已进行了回复和解释，对此我办不再受理该问题。</option>
                                        </select></div>
                                        <div><textarea id="txtXdealDesc" name="xdealDesc" class="taCss" rows="4"
                                                       cols="50"></textarea></div>
                                    </td>
                                    <td class="tdR"><span>坐席备注：</span></td>
                                    <td class="tdL">
                                        <div><select id="ddlWordS" class="drpCss" style="width:380px;"
                                                     onchange="DropChgEffectiveText(this,'txtXsysDesc');">
                                            <option value="-1">---内部交流常用语---</option>
                                            <option value="110">无效来电，请核查办结</option>
                                            <option value="120">当场办结，请核查办结</option>
                                            <option value="130">建议回电联系来话人后酌情处理</option>
                                            <option value="140">反映问题与（）相同，酌情催办工单</option>
                                            <option value="150">建议创建工单，请职能部门（）办理。</option>
                                            <option value="150">来话人特别要求：</option>
                                        </select></div>
                                        <div><textarea id="txtXsysDesc" name="xsysDesc" class="taCss" rows="4"
                                                       cols="50"></textarea></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdR"><span class="spOrange">处理选项：</span></td>
                                    <td class="tdL" colspan="3"><input id="stateFlag1" name="stateFlag"
                                                                       onclick="stDescSet('存草稿')" type="radio"
                                                                       value="101"
                                                                       checked="checked"/><label
                                            for="stateFlag1">存草稿</label>
                                        &nbsp;&nbsp;<input id="stateFlag2" name="stateFlag"
                                                           onclick="stDescSet('转值班长处理')" type="radio"
                                                           value="120"/><label
                                                for="stateFlag2">转值班长处理</label>
                                        &nbsp;&nbsp;<input id="stateFlag3" name="stateFlag"
                                                           onclick="stDescSet('坐席当场解答')" type="radio"
                                                           value="131"/><label
                                                for="stateFlag3">当场解答</label>
                                        &nbsp;&nbsp;<input id="stateFlag4" name="stateFlag"
                                                           onclick="stDescSet('无效来电 当场作废')" type="radio"
                                                           value="132"/><label
                                                for="stateFlag4">无效来电</label>
                                        <input id="tbStateDesc" name="stateDesc" type="hidden" value="草稿"/>
                                    </td>
                                </tr>
                            </table>
                        </DIV>
                    </fieldset>
                </TD>
            </TR>
            <TR>
                <TD align="center">
                    <div style="padding-top:8px;padding-bottom:2px;">
                        <input id="clewFlag" name="clewFlag" type="hidden" value="-2"/>
                        <input id="hdnOpRtn" name="opRtn" type="hidden" value="-2"/>


                        <input type="hidden" name="_model" value="0">
                        <!--                        <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-Yadd'"-->
                        <!--                           onclick="btnSbmtClick();">创建</a>-->
                        <button type="button" class="btn btn-sm btn-primary" onclick="btnSbmtClick()"><i
                                class="fa fa-check"></i>创建
                        </button>
                        &nbsp;
                        <input type="hidden" id="flagInit" value="0">
                        <!--                        <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-Xcancel'"-->
                        <!--                           onClick="qxWinCloseInSon();">关闭</a>-->
                        <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i
                                class="fa fa-reply-all"></i>关 闭
                        </button>
                    </div>
                </TD>
            </TR>
        </TABLE>
    </form>
</div>
</body>
<script language="javascript">

    // function qxWinHistory() {
    //     var tel = $("#txtFromTelA").val();
    //     var showUrl = 'telHistory.do?tno=' + tel + '&act=5';
    //     //var showUrl = '../../cmnPages/htryLiaison.do?telno='+tel+'&act=5';
    //     $('#ifmShow').attr('src', showUrl);
    //
    //     var showUrl1 = 'telOver.do?tno=' + tel;
    //     $('#ifmShow1').attr('src', showUrl1);
    //
    //     $('#qxWin').window('open');
    // }

    // function loreLibOpen() {
    //     var contentType = $('#qxCT').combotree('getValue');
    //     var showUrl = kwdgUrl + '?contentType=' + contentType;
    //     var winName = "知识库数据查询";
    //     window.open(showUrl, winName, 'height=800, width=1000, top=0,left=1500, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
    // }

    //--------aide:-----------
    function aideFrName(flag) {
        var tmp = $("#txtFromName").val().toString();
        if (1 != flag) { //-1
            var sex = document.getElementById("rbMan");
            if (tmp == "匿名") {
                if (sex.checked)
                    $("#txtFromName").val("先生");
                else
                    $("#txtFromName").val("女士");
            }
        } else {
            if (tmp.length == 0)
                $("#txtFromName").val("匿名");
        }
    }

    function aideSex(fpStr) {
        var frName = $("#txtFromName").val().toString();
        var tmpA = frName.substr(frName.length - 1, 1);
        var tmpB = frName.substr(frName.length - 2, 1);
        var temp = tmpB + tmpA;
        frName = frName.replace(temp, fpStr);
        $("#txtFromName").val(frName);
    }

    function stDescSet(fpStr) {
        $("#tbStateDesc").val(fpStr);
    }

    function endTmSet() {
        // var nwTm = DateToStr();
        $("#tmEnd").val();
        $("#txtLiftEnd").val();
    }

    //---------:aide----------

    function btnSbmtClick() {
        var df = $("#txtFromTime").val();
        var de = $("#tmEnd").val();
        if (de.length < 2) {
            // de = DateToStr();
            $("#tmEnd").val(de);
        }

        if (df.length < 2 || de.length < 2)
            alert("请指定有效接听时间或挂断时间");
        else {
            $("#txtLiftEnd").val(de);
            // $("#txtLiftLength").val(timeIntervalGet("S", df, de));

            if (document.getElementById("rbOpenXn").checked && "2" == $("#txtAutoOpen").val().toString()) {
                $("#txtAutoOpen").val("1");
            }

            var df = $("#ddlTelSort").val();//99
            var area = $("#ddlArea").val();
            var cnt = $("#txtDcntAcode").val();//1170***
            var state = $('input[name="stateFlag"]:checked').val(); //131,132,125
            var txtmanyi = $("#manyiSelect").find("option:selected").val();//获取满意度
            if (state == 131) {
                $("#manyidu").val(txtmanyi);
            }
            if (df == -1 || area == -1) {
                alert("请正确选择'地区','来电类别'");
                return false;
            } else {
                // if (cnt == '') {
                //     alert("'内容类别'不能为空");
                // } else
                    if (state == 131 && txtmanyi == "") {
                    alert("'解答满意度'不能为空");
                } else {
                    if (df != 99 && cnt.substr(0, 4) != 1170 && state != 132) {
                        $('#fmTelGet').submit();
                    } else {
                        if (df == 99 && cnt.substr(0, 4) == 1170 && state == 132) {
                            $('#fmTelGet').submit();
                        } else {
                            alert("请正确选择'来电类别','内容类别',以及'处理选项'");
                            return false;
                        }
                    }
                }
            }
        }

    }
</script>
</html>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     